﻿@model WI.CandidateManager.Common.Data.Entities.SingleQuestion

@{
    ViewBag.Title = @Resources.Common.CommonQuestionDetail;
}

<h2>@Resources.Common.CommonQuestionDetail</h2>

<table class="bordered">
    <tr>
        <td class="vertical-header">@Html.DisplayNameFor(model => model.Text)</td>
        <td><pre>@Html.DisplayFor(model => model.Text, new { @class = "" })</pre></td>
    </tr>
    <tr>
        <td class="vertical-header">@Html.DisplayNameFor(model => model.Test.Name)</td>
        <td>@Html.DisplayFor(model => model.Test.Name, new { @class = "" })</td>
    </tr>
</table>

<h3>@Resources.Common.CommonAnswerList</h3>

<table class="bordered">
    <thead>
        <tr>
            <th>@Resources.Common.CommonColumnAnswerText</th>
        </tr>
    </thead>
    @foreach (var answer in Model.AnswerBase)
    {
        <tr>
            <td>@answer.Text</td>
        </tr>
    }
</table>

<p>
    @Html.ActionLink(@Resources.Common.CommonButtonBack, "Detail", new { @TestId = Model.Test.Id }, new { @class = "common-btn-large BlueColor" })
</p>
